/*
 * @Author: scl
 * @Date: 2023-09-17 18:24:07
 * @LastEditTime: 2023-09-17 22:52:24
 * @Description: file content
 */
import { http } from "@/utils/http"
import type { ProfileDetail, ProfileParams } from "@/types/member"
export const getMemberProfileAPI = () => {
    return http<ProfileDetail>({
        url: "/member/profile",
        method: "GET"
    })
}
export const putMemberProfileAPI = (data: ProfileParams) => {
    return http<ProfileDetail>({
        method: 'PUT',
        url: '/member/profile',
        data,
    })
}